<?php

@session_start();
$access_token = $_SESSION['access_token'];

$suser = $access_token['user_id'];

$redirect = $_REQUEST['redirect'];

$type = $_REQUEST['type'];
$typeid = $_REQUEST['typeid'];

$basedir = "/home/boostpo1/public_html/chirplace.com/usr/";
$topdir = $basedir.$suser;
if (!is_dir($topdir))
{
	@mkdir($topdir, 0700);
	@mkdir($topdir."/prune", 0700);
	@mkdir($topdir."/forms", 0700);
	@mkdir($topdir."/scodes", 0700);
	@mkdir($topdir."/images", 0700);
}
@unlink($basedir.$suser."/".$type."/".$typeid.".php");
@unlink($basedir.$suser."/".$type."/".$typeid.".pnd");
if ($type == "images")
	@unlink($basedir.$suser."/".$type."/".$typeid.".jpg");

header("Location: index.php?start=$redirect");
?> 
